package com.ztz.mynewdemo.adapter;

import android.content.Context;

import com.ztz.mynewdemo.R;
import com.ztz.mynewdemo.bean.WeatherResponse;

import java.util.List;

/**
 * Created by wqewqe on 2018/1/24.
 */

public class WeatherAdapter extends CommonRecyclerAdapter<WeatherResponse.ResultBean.FutureBean> {
    public WeatherAdapter(Context mContext, List<WeatherResponse.ResultBean.FutureBean> mDatas, int mLayoutId) {
        super(mContext, mDatas, mLayoutId);
    }

    @Override
    public void convert(ViewHolder holder, WeatherResponse.ResultBean.FutureBean items) {
        holder.setText(R.id.date_text,items.getDate());
        holder.setText(R.id.info_text,items.getWeather());
        holder.setText(R.id.degree_txt,items.getTemperature());
    }
}
